package com.itxiaowu.dao;

import com.itxiaowu.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 *  预约
 */
public interface OrderSettingDao {

    /**
     * 1:根据日期查询数据
     */
    public OrderSetting findByDate(Date OrderDate);

    /**
     * 2: 添加预约数据
     */
    public void addOrderSetting(OrderSetting orderSetting);

    /**
     * 3: 修改预约数据
     */
    public void updateOrderSetting(OrderSetting orderSetting);

    /**
     *  4:根据开始和结束条件查询数据
     */
    public List<OrderSetting> getMsgByMonth(Map<String,Object> hash);


    public void editReservations(OrderSetting orderSetting);

    /**
     * 删除旧数据
     * @param date
     */
    public void deletePastOrderData(String date);
}
